package com.example.demo.domain;

import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;
import java.math.BigDecimal;


@Data
@Component
public class Item implements Serializable {
    private static final long serialVersionUID = -2159121673445254631L;

    private String itemId;
    private String productId;
    private BigDecimal listPrice;
    private BigDecimal unitCost;
    private int supplierId;
    private String status;
    private String attribute1;
    private String attribute2;
    private String attribute3;
    private String attribute4;
    private String attribute5;
    private Product product;
    private int quantity;

    @Override
    public String toString(){
        return "("+getItemId()+"-"+getProductId()+")";
    }
}
